Skip to content

Add Windows ARM64 support for 5.x - #1282

Open
Prasadayus wants to merge 5 commits into
opencv:5.xfrom
Prasadayus:arm64-windows-5x
Open

Prasadayus wants to merge 5 commits into
opencv:5.xfrom
Prasadayus:arm64-windows-5x

Conversation

@Prasadayus

@Prasadayus Prasadayus commented Oct 27, 2026 •

Copy link
Copy Markdown

Follows the same approach as #1143 for 4.x.

Comment thread setup.py Resolved
Comment thread setup.py Resolved
@asmorkalov

Copy link
Copy Markdown
Collaborator

Windows ARM build:

  INFO: calculating backend command to run: C:\Tools\Ninja\ninja.EXE
  [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Encountered error while generating package metadata.

numpy

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Traceback (most recent call last):
  File "C:\a\opencv-python\opencv-python\setup.py", line 10, in <module>
    from skbuild import cmaker, setup
ModuleNotFoundError: No module named 'skbuild'
Error: Process completed with exit code 1.

@Prasadayus
Prasadayus marked this pull request as ready for review November 10, 2026 09:20

@asmorkalov asmorkalov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert submodules update and I merge the PR.

@asmorkalov

Copy link
Copy Markdown
Collaborator

Windows ARM build failure:

 C:\a\opencv-python\opencv-python\_skbuild\win-arm64-3.11\cmake-build\lib\python3\Release\cv2.pyd : fatal error LNK1120: 2 unresolved externals [C:\a\opencv-python\opencv-python\_skbuild\win-arm64-3.11\cmake-build\modules\python3\opencv_python3.vcxproj]
  Building Custom Rule C:/a/opencv-python/opencv-python/opencv/modules/videoio/CMakeLists.txt
Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.11.9\arm64\Lib\site-packages\skbuild\setuptools_wrap.py", line 669, in setup
    cmkr.make(make_args, install_target=cmake_install_target, env=env)
  File "C:\hostedtoolcache\windows\Python\3.11.9\arm64\Lib\site-packages\skbuild\cmaker.py", line 697, in make
    self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
  File "C:\hostedtoolcache\windows\Python\3.11.9\arm64\Lib\site-packages\skbuild\cmaker.py", line 742, in make_impl
    raise SKBuildError(msg)

An error occurred while building with CMake.
  Command:
    'C:\hostedtoolcache\windows\Python\3.11.9\arm64\Lib\site-packages\cmake\data\bin/cmake.exe' --build . --target install --config Release --
  Install target:
    install
  Source directory:
    C:\a\opencv-python\opencv-python
  Working directory:
    C:\a\opencv-python\opencv-python\_skbuild\win-arm64-3.11\cmake-build
Please check the install target is valid and see CMake's output for more information.

@asmorkalov

Copy link
Copy Markdown
Collaborator

Please pay attention that I merged several fixes from 4.x to 5.x. Submolules update coming in #1286

@Prasadayus

Copy link
Copy Markdown
Author

@asmorkalov This LNK1120 failure is the known MLAS link bug from the 5.0.0 tag. Also this didn't fail in the previous CI run, when the submodules were still at the 5.1.0 bump.

I can rebase this PR once your submodules update PR #1286 is merged

cc:@abhishek-gola

@Prasadayus

Copy link
Copy Markdown
Author

Also, the Windows ARM CI here runs on GitHub's own Windows ARM runner, not a QDC device.
@abhishek-gola @asmorkalov

@asmorkalov

Copy link
Copy Markdown
Collaborator

Ok, I'll trigger CI again as soon as 5.1.0 tag is applied.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants